Welcome to a number guessing game. I am thinking of a number between 1 and 100. You will be asked to guess it. I will tell you if your guess is higher or lower than the number I've chosen. You win by guessing my number!
{(set: $x to (random: 1,100))
(set: $turns to 1)
[[Begin|Guess]]}
(set: $guess to (num: (prompt: "What number do you guess?")))
(goto: "Process")
You have guessed too high.
[[Guess again?|Guess]]
(set: $turns to it + 1)
You have guessed too low.
[[Guess again?|Guess]]
(set: $turns to it + 1)
Congratulations! You have guessed correctly. The secret number was (print: $x). It took you (print: $turns) turns to guess correctly.
(if: $guess < $x)[(goto: "Too Low")]
(elseif: $guess > $x)[(goto: "Too High")]
(elseif: $guess is $x)[(goto: "Correct")]